class Container:
    def __init__(self):
        self.pi=3.1415926
        self.total_area=0
class Sphere(Container):
    def __init__(self,radius):
        super().__init__()
        self.radius=radius
    def area(self):
        return 4 * self.pi * self.radius**2
    def __str__(self):
        return f"Sphere: area={self.area():.2f}"

class Cylinder(Container):
    def __init__(self,radius,high):
        super().__init__()
        self.radius=radius
        self.high=high
    def area(self):
        return 2 * self.pi * self.radius * (self.radius + self.high)
    def __str__(self):
        return f"Cylinder: area={self.area():.2f}"
if __name__ == '__main__':
    s = Sphere(float(input()))
    c = Cylinder(float(input()),float(input()))
    Container.total_area = s.area() + c.area()
    print(s)
    print(c)
    print(f"Total area={Container.total_area:.2f}")
